﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2-6aspx.aspx.cs" Inherits="Example.WebForm2_6aspx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>DropDownList示例</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        DropDownList示例<hr />
        请选择您最喜欢的颜色：
        <asp:Label ID="lblView" runat="server"></asp:Label>
        <br />
        <asp:DropDownList ID="ddlColor" runat="server" AutoPostBack="true"
            onselectedindexchanged="ddlColor_SelectedIndexChanged" >
            <asp:ListItem>红色</asp:ListItem>
            <asp:ListItem>绿色</asp:ListItem>
            <asp:ListItem>蓝色</asp:ListItem>
        </asp:DropDownList>

    </div>
    </form>
</body>
</html>
